package com.landeb.shop.huo.httpRequest;

import com.landeb.shop.huo.bean.BeanActOrderDetail;
import com.landeb.shop.huo.bean.BeanActPayDetail;
import com.landeb.shop.huo.bean.BeanAliPayRequst;
import com.landeb.shop.huo.bean.BeanStatusInfo;
import com.landeb.shop.huo.bean.BeanWXPayRequest;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by blade on 2016/11/27.
 */

public interface ActPayRequest {

    @FormUrlEncoded
    @POST("Order/detail")
    Observable<BeanActOrderDetail> getMoney(@Field("order_id") String order_id);

    @FormUrlEncoded
    @POST("User/cashier_detail")
    Observable<BeanActPayDetail> getPayDetail(@Field("id") String order_id);

    @FormUrlEncoded
    @POST("User/pay")
    Observable<BeanStatusInfo> balancePay(@Field("id") String order_id, @Field("password") String password);

    @FormUrlEncoded
    @POST("Cashier/alipay_app_pay")
    Observable<BeanAliPayRequst> getAliInfo(@Field("id") String order_id);

    @FormUrlEncoded
    @POST("Cashier/wxpay_app_pay")
    Observable<BeanWXPayRequest> getWXInfo(@Field("id") String order_id);
}
